<?php
//模块配置文件
switch(ENVIRONMENT_MODE) {
    case 'local': {
        return array(
            //短信api
            'send_sms_api' => 'http://192.168.96.35:8888/inner/sendsms',

            'login_auth_domain' => 'http://192.168.80.173:8107',

            //文件服务器地址
            'download_file_url' => 'http://192.168.96.35:7070/FileService/downloadstorefile.do',
            'upload_file_url'   => 'http://192.168.96.35:7070/FileService/uploadfile.do',

            //权限接口配置
            'permission_api'    => [
                'login'                => 'http://192.168.80.173:8801/resetapi.php/Admin/Group/Login',
                'get_permission'       => 'http://192.168.80.173:8801/resetapi.php/Admin/Group/getPermission',
                'get_group'            => 'http://192.168.80.173:8801/resetapi.php/Admin/Group/getGroup',
                'get_user_group'       => 'http://192.168.80.173:8801/resetapi.php/Admin/Group/getUserGroup',
                'create_admin'         => 'http://192.168.80.173:8801/resetapi.php/Admin/Group/createAdmin',
                'update_admin'         => 'http://192.168.80.173:8801/resetapi.php/Admin/Group/editAdmin',
                'get_group_permission' => 'http://192.168.80.173:8801/resetapi.php/Admin/Group/getGroupPermission',
            ],

            //大数据接口配置
            'big_data_report' => [
                'username' => 'advertise1_local',
                'secret'   => '3xk3j6bbjvqb0529',
            ],

            //开房信息接口配置
            'room_info_report' => [
                'username' => 'advertise2_local',
                'secret'   => 'a3ncmbzv0v4jwcdi',
            ],

            //百度聚屏业务配置
            'baidu_api'       => [
                'appid'     => 'kmi',
                'app_id'    => 'kmi',
                'appsecret' => '541a71be312f4e40ad3d3d9975862071'
            ],
            'baidu_host'      => 'http://bnnserver-test.nuomi.com',


            //缓存配置
            'cache'             => [
                // 使用复合缓存类型
                'type'    => 'complex',
                // 默认使用的缓存
                'default' => [
                    // 驱动方式
                    'type'   => 'redis',
                    // 服务器地址
                    'host'   => '192.168.80.173',
                    'port'   => '6379',
                    // 缓存前缀
                    'prefix' => 'kmads:',
                    // 缓存有效期 0表示永久缓存
                    'expire' => 86400,
                ],
                // redis缓存
                'redis'   => [
                    // 驱动方式
                    'type'   => 'redis',
                    // 服务器地址
                    'host'   => '192.168.80.173',
                    'port'   => '6379',
                    // 缓存前缀
                    'prefix' => 'kmads:',
                    // 缓存有效期 0表示永久缓存
                    'expire' => 86400,
                ],
            ],
        );
    }
    case 'tests': {
        return array(
            //短信api
            'send_sms_api' => 'http://192.168.96.35:8888/inner/sendsms',

            'login_auth_domain' => 'http://192.168.96.28:8108',

            //文件服务器地址
            'download_file_url' => 'http://192.168.96.35:7070/FileService/downloadstorefile.do',
            'upload_file_url'   => 'http://192.168.96.35:7070/FileService/uploadfile.do',

            //权限接口配置
            'permission_api'    => [
                'login'                => 'http://192.168.96.28:8119/resetapi.php/Admin/Group/Login',
                'get_permission'       => 'http://192.168.96.28:8119/resetapi.php/Admin/Group/getPermission',
                'get_group'            => 'http://192.168.96.28:8119/resetapi.php/Admin/Group/getGroup',
                'get_user_group'       => 'http://192.168.96.28:8119/resetapi.php/Admin/Group/getUserGroup',
                'create_admin'         => 'http://192.168.96.28:8119/resetapi.php/Admin/Group/createAdmin',
                'update_admin'         => 'http://192.168.96.28:8119/resetapi.php/Admin/Group/editAdmin',
                'get_group_permission' => 'http://192.168.96.28:8119/resetapi.php/Admin/Group/getGroupPermission',
            ],

            //大数据接口配置
            // 'big_data_report' => [
            //     'username' => 'advertise1_local',
            //     'secret'   => '3xk3j6bbjvqb0529',
            // ],
            'big_data_report' => [
                'username' => 'advertise',
                'secret'   => 'v466vazrnpeng66r',
            ],

            //开房信息接口配置
            'room_info_report' => [
                'username' => 'advertise2_local',
                'secret'   => 'a3ncmbzv0v4jwcdi',
            ],

            //百度聚屏业务配置
            'baidu_api'       => [
                'appid'     => 'kmi',
                'app_id'    => 'kmi',
                'appsecret' => '541a71be312f4e40ad3d3d9975862071'
            ],
            'baidu_host'      => 'http://bnnserver-test.nuomi.com',

            //缓存配置
            'cache'             => [
                // 使用复合缓存类型
                'type'    => 'complex',
                // 默认使用的缓存
                'default' => [
                    // 驱动方式
                    'type'   => 'redis',
                    // 服务器地址
                    'host'   => '192.168.96.24',
                    'port'   => '6379',
                    // 缓存前缀
                    'prefix' => 'kmads:',
                    // 缓存有效期 0表示永久缓存
                    'expire' => 86400,
                ],
                // redis缓存
                'redis'   => [
                    // 驱动方式
                    'type'   => 'redis',
                    // 服务器地址
                    'host'   => '192.168.96.24',
                    'port'   => '6379',
                    // 缓存前缀
                    'prefix' => 'kmads:',
                    // 缓存有效期 0表示永久缓存
                    'expire' => 86400,
                ],
            ],
        );
    }
    case 'gray': {
        return array(
            //短信api
            'send_sms_api' => 'http://utils.ktvme.com/inner/sendsms',

            'login_auth_domain' => 'http://access.ktvme.com:8100',

            //文件服务器地址
            'download_file_url' => 'http://filedownload.ktvme.com:8080/FileService/downloadstorefile.do',
            'upload_file_url'   => 'http://filedownload.ktvme.com:8080/FileService/uploadfile.do',

            //权限接口配置
            'permission_api'    => [
                'login'                => 'http://adaccess.ktvme.com/resetapi.php/Admin/Group/Login',
                'get_permission'       => 'http://adaccess.ktvme.com/resetapi.php/Admin/Group/getPermission',
                'get_group'            => 'http://adaccess.ktvme.com/resetapi.php/Admin/Group/getGroup',
                'get_user_group'       => 'http://adaccess.ktvme.com/resetapi.php/Admin/Group/getUserGroup',
                'create_admin'         => 'http://adaccess.ktvme.com/resetapi.php/Admin/Group/createAdmin',
                'update_admin'         => 'http://adaccess.ktvme.com/resetapi.php/Admin/Group/editAdmin',
                'get_group_permission' => 'http://adaccess.ktvme.com/resetapi.php/Admin/Group/getGroupPermission',
            ],

            //大数据接口配置
            'big_data_report' => [
                'username' => 'advertise1',
                'secret'   => 'vwefavpsds8rrudi',
            ],

            //开房信息接口配置
            'room_info_report' => [
                'username' => 'advertise2',
                'secret'   => 'pm7ihxvbopyzaor0',
            ],


            //百度聚屏业务配置
            'baidu_api'       => [
                'appid'     => 'kmi',
                'app_id'    => 'kmi',
                'appsecret' => '541a71be312f4e40ad3d3d9975862071'
            ],
            'baidu_host'      => 'http://ticketmovie.baidu.com',


            //缓存配置
            'cache'             => [
                // 使用复合缓存类型
                'type'    => 'complex',
                // 默认使用的缓存
                'default' => [
                    // 驱动方式
                    'type'   => 'redis',
                    // 服务器地址
                    'host'   => '192.168.10.234',
                    'port'   => '6379',
                    // 缓存前缀
                    'prefix' => 'kmads:',
                    // 缓存有效期 0表示永久缓存
                    'expire' => 86400,
                ],
                // redis缓存
                'redis'   => [
                    // 驱动方式
                    'type'   => 'redis',
                    // 服务器地址
                    'host'   => '192.168.10.234',
                    'port'   => '6379',
                    // 缓存前缀
                    'prefix' => 'kmads:',
                    // 缓存有效期 0表示永久缓存
                    'expire' => 86400,
                ],
            ],
        );
    }
    case 'production': {
        return array(
            //短信api
            'send_sms_api' => 'http://utils.ktvme.com/inner/sendsms',

            'login_auth_domain' => 'http://access.ktvme.com:8100',

            //文件服务器地址
            'download_file_url' => 'http://filedownload.ktvme.com:8080/FileService/downloadstorefile.do',
            'upload_file_url'   => 'http://filedownload.ktvme.com:8080/FileService/uploadfile.do',

            //权限接口配置
            'permission_api'    => [
                'login'                => 'http://adaccess.ktvme.com/resetapi.php/Admin/Group/Login',
                'get_permission'       => 'http://adaccess.ktvme.com/resetapi.php/Admin/Group/getPermission',
                'get_group'            => 'http://adaccess.ktvme.com/resetapi.php/Admin/Group/getGroup',
                'get_user_group'       => 'http://adaccess.ktvme.com/resetapi.php/Admin/Group/getUserGroup',
                'create_admin'         => 'http://adaccess.ktvme.com/resetapi.php/Admin/Group/createAdmin',
                'update_admin'         => 'http://adaccess.ktvme.com/resetapi.php/Admin/Group/editAdmin',
                'get_group_permission' => 'http://adaccess.ktvme.com/resetapi.php/Admin/Group/getGroupPermission',
            ],

            //大数据接口配置
            'big_data_report' => [
                'username' => 'advertise1',
                'secret'   => 'vwefavpsds8rrudi',
            ],

            //开房信息接口配置
            'room_info_report' => [
                'username' => 'advertise2',
                'secret'   => 'pm7ihxvbopyzaor0',
            ],

            //百度聚屏业务配置
            'baidu_api'       => [
                'appid'     => 'kmi',
                'app_id'    => 'kmi',
                'appsecret' => '541a71be312f4e40ad3d3d9975862071'
            ],
            'baidu_host'      => 'http://ticketmovie.baidu.com',


            //缓存配置
            'cache'             => [
                // 使用复合缓存类型
                'type'    => 'complex',
                // 默认使用的缓存
                'default' => [
                    // 驱动方式
                    'type'   => 'redis',
                    // 服务器地址
                    'host'   => '192.168.10.234',
                    'port'   => '6379',
                    // 缓存前缀
                    'prefix' => 'kmads:',
                    // 缓存有效期 0表示永久缓存
                    'expire' => 86400,
                ],
                // redis缓存
                'redis'   => [
                    // 驱动方式
                    'type'   => 'redis',
                    // 服务器地址
                    'host'   => '192.168.10.234',
                    'port'   => '6379',
                    // 缓存前缀
                    'prefix' => 'kmads:',
                    // 缓存有效期 0表示永久缓存
                    'expire' => 86400,
                ],
            ],
        );
    }
}